﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="present_apply.aspx.cs"
    Inherits="EZCRS.HCMS.Web.manage.present.present_apply" %>

<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register Assembly="Book38.Net.CustomControl" Namespace="Book38.Net.CustomControl"
    TagPrefix="cc1" %>
<%@ Register Src="../usercontrol/jspage.ascx" TagName="jspage" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <script src="../../Common/base_grid.js" language="javascript" type="text/javascript"></script>

    <script src="../../common/calendar1.js" language="javascript" type="text/javascript"></script>

</head>
<body onload="Page_Load('First')">
    <form id="form1" runat="server">
    <uc2:titlepage ID="Titlepage1" runat="server" inittitle="<%$ Resources:Site, LabPresentApply %>">
    </uc2:titlepage>
    <table width="100%" align="center" cellpadding="1" cellspacing="1" class="main-table">
        <tr class="line-even">
            <td>
                <asp:Label runat="server" ID="Label2" Text="<%$ Resources:Site, LabPresentNumb %>"></asp:Label>：
            </td>
            <td style="width: 70px">
                <cc1:webtextbox id="txt_prscode" runat="server" cssclass="text-line" validtype="Int"
                    width="60px"><Value>
</Value>
</cc1:webtextbox>
            </td>
            <td style="text-align: right;">
                <asp:Label runat="server" ID="LabPresentPrsName" Text="<%$ Resources:Site, LabPresentPrsName %>"></asp:Label>：
            </td>
            <td style="text-align: left;">
                <cc1:webtextbox id="txt_prsname" runat="server" cssclass="text-line" width="100px"
                    maxlength="10"></cc1:webtextbox>
            </td>
            <td>
                <asp:Label runat="server" ID="Label1" Text="<%$ Resources:Site, LabDate %>"></asp:Label>：
            </td>
            <td>
                <cc1:webtextbox id="bstart" runat="server" cssclass="text-line" maxlength="10" width="100px"
                    text="yyyy-MM-dd"><Value>
</Value>
</cc1:webtextbox>
                -<cc1:webtextbox id="bend" runat="server" cssclass="text-line" maxlength="10" width="100px"
                    text="yyyy-MM-dd"><Value>
</Value>
</cc1:webtextbox>
            </td>
            <td width="13%" style="text-align: right;">
                <asp:Label runat="server" ID="LabPresentPrsStatus" Text="<%$ Resources:Site, LabPresentPrsStatus %>"></asp:Label>：
            </td>
            <td style="text-align: left;">
                <asp:DropDownList ID="txt_prstype" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="BtnSearch" runat="server" CssClass="bttn" Text="<%$ Resources:Site, ButtonSearch %>" />
            </td>
        </tr>
    </table>
    <input type="hidden" id="txt_sql" value="" />
    </form>
    <br />
    <div class="mid">
    <uc1:jspage ID="Jspage1" runat="server"></uc1:jspage>
</div>
    <script type="text/javascript">
        function Page_Load(pageindex) {
            var sqlStr = "";
            sqlStr += $F("txt_prscode").value + "|";
            sqlStr += $F("txt_prsname").value + "|";
            sqlStr += $FDate("bstart") + "|";
            sqlStr += $FDate("bend") + "|";
            sqlStr += $F("txt_prstype").value;

            pageindex = pageIndexSetting(pageindex);    //pageindex的设定
            EZCRS.HCMS.Web.manage.present.present_apply.Getrecord(pageindex, sqlStr, setTable);
            pageLastSetting(sqlStr, pageindex);     //最后的赋值
        }
        AjaxPro.timeoutPeriod = 40000;
        var l = $F("loadinfo");
        AjaxPro.onLoading = function(b) {
            l.innerHTML = "<img src=\"../../Image/loading.gif\" alt=\"Loading\" align=\"absmiddle\" /><%= Resources.Site.LabLoadInfo %>";
        }
        AjaxPro.onError = function(e) {
            l.innerHTML = "<%= Resources.Site.LabLoadErrInfo %>";
        }
        AjaxPro.onTimeout = function(t) {
            l.innerHTML = "<%= Resources.Site.LabLoadErrInfo %>";
        }
    

    </script>

</body>
</html>
